/*
 * An XML document type.
 * Localname: routeCoverage
 * Namespace: http://api.clickatell.com/soap/webservice
 * Java type: com.clickatell.api.soap.webservice.RouteCoverageDocument
 *
 * Automatically generated - do not modify.
 */
package com.clickatell.api.soap.webservice.impl;
/**
 * A document containing one routeCoverage(@http://api.clickatell.com/soap/webservice) element.
 *
 * This is a complex type.
 */
public class RouteCoverageDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.clickatell.api.soap.webservice.RouteCoverageDocument
{
    
    public RouteCoverageDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ROUTECOVERAGE$0 = 
        new javax.xml.namespace.QName("http://api.clickatell.com/soap/webservice", "routeCoverage");
    
    
    /**
     * Gets the "routeCoverage" element
     */
    public com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage getRouteCoverage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage target = null;
            target = (com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage)get_store().find_element_user(ROUTECOVERAGE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "routeCoverage" element
     */
    public void setRouteCoverage(com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage routeCoverage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage target = null;
            target = (com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage)get_store().find_element_user(ROUTECOVERAGE$0, 0);
            if (target == null)
            {
                target = (com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage)get_store().add_element_user(ROUTECOVERAGE$0);
            }
            target.set(routeCoverage);
        }
    }
    
    /**
     * Appends and returns a new empty "routeCoverage" element
     */
    public com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage addNewRouteCoverage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage target = null;
            target = (com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage)get_store().add_element_user(ROUTECOVERAGE$0);
            return target;
        }
    }
    /**
     * An XML routeCoverage(@http://api.clickatell.com/soap/webservice).
     *
     * This is a complex type.
     */
    public static class RouteCoverageImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.clickatell.api.soap.webservice.RouteCoverageDocument.RouteCoverage
    {
        
        public RouteCoverageImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName APIID$0 = 
            new javax.xml.namespace.QName("", "api_id");
        private static final javax.xml.namespace.QName SESSIONID$2 = 
            new javax.xml.namespace.QName("", "session_id");
        private static final javax.xml.namespace.QName MSISDN$4 = 
            new javax.xml.namespace.QName("", "msisdn");
        private static final javax.xml.namespace.QName PASSWORD$6 = 
            new javax.xml.namespace.QName("", "password");
        private static final javax.xml.namespace.QName USER$8 = 
            new javax.xml.namespace.QName("", "user");
        
        
        /**
         * Gets the "api_id" element
         */
        public int getApiId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APIID$0, 0);
                if (target == null)
                {
                    return 0;
                }
                return target.getIntValue();
            }
        }
        
        /**
         * Gets (as xml) the "api_id" element
         */
        public org.apache.xmlbeans.XmlInt xgetApiId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(APIID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "api_id" element
         */
        public void setApiId(int apiId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APIID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APIID$0);
                }
                target.setIntValue(apiId);
            }
        }
        
        /**
         * Sets (as xml) the "api_id" element
         */
        public void xsetApiId(org.apache.xmlbeans.XmlInt apiId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(APIID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(APIID$0);
                }
                target.set(apiId);
            }
        }
        
        /**
         * Gets the "session_id" element
         */
        public java.lang.String getSessionId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SESSIONID$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "session_id" element
         */
        public org.apache.xmlbeans.XmlString xgetSessionId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SESSIONID$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "session_id" element
         */
        public void setSessionId(java.lang.String sessionId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SESSIONID$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SESSIONID$2);
                }
                target.setStringValue(sessionId);
            }
        }
        
        /**
         * Sets (as xml) the "session_id" element
         */
        public void xsetSessionId(org.apache.xmlbeans.XmlString sessionId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SESSIONID$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SESSIONID$2);
                }
                target.set(sessionId);
            }
        }
        
        /**
         * Gets the "msisdn" element
         */
        public java.lang.String getMsisdn()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MSISDN$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "msisdn" element
         */
        public org.apache.xmlbeans.XmlString xgetMsisdn()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MSISDN$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "msisdn" element
         */
        public void setMsisdn(java.lang.String msisdn)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MSISDN$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MSISDN$4);
                }
                target.setStringValue(msisdn);
            }
        }
        
        /**
         * Sets (as xml) the "msisdn" element
         */
        public void xsetMsisdn(org.apache.xmlbeans.XmlString msisdn)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MSISDN$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MSISDN$4);
                }
                target.set(msisdn);
            }
        }
        
        /**
         * Gets the "password" element
         */
        public java.lang.String getPassword()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PASSWORD$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "password" element
         */
        public org.apache.xmlbeans.XmlString xgetPassword()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PASSWORD$6, 0);
                return target;
            }
        }
        
        /**
         * Sets the "password" element
         */
        public void setPassword(java.lang.String password)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PASSWORD$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PASSWORD$6);
                }
                target.setStringValue(password);
            }
        }
        
        /**
         * Sets (as xml) the "password" element
         */
        public void xsetPassword(org.apache.xmlbeans.XmlString password)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PASSWORD$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PASSWORD$6);
                }
                target.set(password);
            }
        }
        
        /**
         * Gets the "user" element
         */
        public java.lang.String getUser()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USER$8, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "user" element
         */
        public org.apache.xmlbeans.XmlString xgetUser()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USER$8, 0);
                return target;
            }
        }
        
        /**
         * Sets the "user" element
         */
        public void setUser(java.lang.String user)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USER$8, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USER$8);
                }
                target.setStringValue(user);
            }
        }
        
        /**
         * Sets (as xml) the "user" element
         */
        public void xsetUser(org.apache.xmlbeans.XmlString user)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USER$8, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(USER$8);
                }
                target.set(user);
            }
        }
    }
}
